package com.swgk.core.common.base;

import android.content.Context;

import androidx.multidex.MultiDexApplication;

/**
 * @author: 杨畔
 * @date: 2021/2/23 09:58
 * @Description: application基类，初始化公用数据，并保存全局通用的context
 */
public class BaseApplication extends MultiDexApplication {
    private static Context mApplication;

    @Override
    public void onCreate() {
        super.onCreate();
        mApplication = this;
    }

    /**
     * 获取application的context
     */
    public static Context getApplication() {
        return mApplication;
    }
}
